package requirements;

import impsoft.scripting.ibot.itemrec.ItemCondition;

public class ItemAny extends ItemCondition {
	private ItemCondition[] conditions;

	public ItemAny(ItemCondition[] conditions) {
		this.conditions = conditions;
	}

	@Override
	public boolean validItem(String itemName) {
		for (ItemCondition condition : conditions) {
			if (condition.validItem(itemName)) {
				return true;
			}
		}

		return false;
	}

}
